package net.zjitc.Shape;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/20 9:25
 */
public class Tset {
    public static void main(String[] args) {
        System.out.println("1--圆形\n2--长方形\n3--三角形" );
        Scanner in= new Scanner(System.in);
        int a=in.nextInt();
        Shape shape=ShapeFactory.getShape(a);
        shape.print();
        /**Shape shape;
        if (a==1){
            shape=new Circular("圆形");
        }else if (a==2){
            shape =new Rectangle("长方形");
        }else if (a==3){
            shape=new Triangle("三角形");
        }else {
            shape=new Shape("形状");
        }
        shape.print();*/

    }
}
